import {GETList, LoadData, SetData} from './action'
const defaultState = {
    list: [

    ],
}

export default (state=defaultState, action) => {
    console.log(state,action)
    switch(action.type) {
        case LoadData:
            return {
                list: action.data
            }
        case "getlist":
            return {
        ...state,
                list: action.data.data
            }
        default:
            return state
    }
}

